package org.ws.task.model.protocol.base;


public class RequestMessage<T> extends BaseMessage<T> {

    private static final long serialVersionUID = -3711088406669930726L;

    public static final int MESSAGE_TYPE = 1;

    public RequestMessage(){}

    public RequestMessage(int id){
        this.setId(id);
    }

    public RequestMessage(int id,RequestAction action){
        this.setId(id);
        this.action = action.getCode();
    }

    private int action;

    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }
}
